package com.yixiang.np.dao;

import java.util.List;
import java.util.Map;

import com.yixiang.np.model.po.Resource;
import org.apache.ibatis.annotations.Param;

public interface ResourceDao {

	public void save(Resource r);
	public void delete(Long id);
	public void deleteByPid(Long id);
	public void deleteButtonByPid(Long id);
	public void update(Resource r);
	public Resource get(Long id);
	public List<Resource> findAll(Map<String, Object> map);
	public List<Resource> findAllData();
	public List<Resource> findByRoles(Map<String, Object> map);
	public List<Resource> findByPid(Map<String, Object> map);
	public List<Resource> userResource(@Param(value = "userid") Long userid);
}
